<extend name="Public/base" />
<block name="body">
    <div class="main-title" style="padding-bottom: 10px;">
        <h2>门店进货处理</h2>
    </div>
    <div class="cf">
        <div class="fl">

        </div>
        <!-- 高级搜索 -->
        <div class="search-form fr cf">
        </div>
    </div>


    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
                <div class="col-md-10">
                    <h4><a class="btn btn-default" onclick="history.go(-1)">返  回</a>
                        批次号： <mark>{$_list[0]['batch']} </mark>
                        订货门店： <mark>{$_list[0]['dpid']|get_subpro_department_name} </mark>
                        请求时间： <mark>{$_list[0]['createAt']|time_format} </mark>
                        状态： <mark class="text-danger"> {$_list[0]['status']|get_subpro_applystatus_name} </mark>
                    </h4>
                </div>
                <div class="col-md-2 text-right"></div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">{$data.batchNum} 进货单详情</div>
        <div class="panel-body data-table table-striped">
            <table class="">
                <thead>
                <tr>
                    <th>商品名称</th>
                    <th>单位规格</th>
                    <th>总规格</th>
                    <th>申请数量</th>
                    <th>实际数量</th>
                    <th>单价</th>
                    <th>总金额</th>
                </tr>
                </thead>
                <tbody>
                <volist name='_list' id='vo'>
                    <tr>
                        <td>{$vo.BIN|get_subpro_product_name}</td>
                        <td>{$vo.spec}</td>
                        <td>{$vo.unit}</td>
                        <td>{$vo.cnt}</td>
                        <td>{$vo.realitycnt}</td>
                        <td>{$vo.unitprice}</td>
                        <td>{$vo.totalprice}</td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </div>


</block>


<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索查询
        $('#submit').click(function () {
            document.getElementById("form-search").submit()
        });
        //导航高亮
        highlight_subnav('{:U('Subpro/outstorageindex')}');
    </script>
</block>